package study.web.service.jaxws.client;

import study.web.service.jaxws.impl.WeatherInterface;
import study.web.service.jaxws.impl.WeatherService;


/**  
* @Name: WeatherClient
* @Description: 天气查询服务客户端
* @Author: 李超
* @version 1.0
* @Create Date: 2017-01-06
*/
public class WeatherClient {
	
	public static void main(String[] args) {
		//1、创建服务视图对象
		WeatherService weatherImplService = new WeatherService() ;
		//2、通过服务视图对象，创建portType对象
		WeatherInterface weatherInterface = weatherImplService.getWeatherServiceSoap() ;
		//3、通过portType对象，调用服务方法
		String cityName = "北京" ;
		String result = weatherInterface.queryWeather(cityName) ;
		System.out.println("from server ... " + result);
	}

}
